package pATT.profilingAlgorithm.PersonalSearcher;
import java.util.HashSet;



public class Recommendation{

	private Instance		instance;
	private HashSet			source_instances;
	private double			confidence;
	private ObjectValuePair	obj; //category - pond

	public Recommendation(Instance i){
		instance = i;
		source_instances = new HashSet();
	}

	public double getConfidence(){
		return confidence;
	}

	public void setConfidence(double d){
		confidence = d;
	}

	public void setPair(ObjectValuePair o){
		obj = o;
	}

	public ObjectValuePair getPair(){
		return obj;
	}

	public Instance getInstance(){
		return instance;
	}

	@SuppressWarnings("unchecked")
	public void addSourceInstance(ObjectValuePair o){
		source_instances.add(o);
	}

	public HashSet getSourceInstances(){
		return source_instances;
	}

	public String toString(){
		return instance.getFile();
	}


}
